//
//  CAUpgradeConfirmNoCart.m
//  LNH
//
//  Created by twentylx on 2018/2/22.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CAUpgradeConfirmNoCartApi.h"

@implementation CAUpgradeConfirmNoCartApi {
    NSString *_goodsId;
    NSString *_sku;
    NSString *_level;
    NSString *_destrictId;
    NSString *_inviteCode;
}

- (instancetype)initGoodsId:(NSString *)goodsId Sku:(NSString *)sku Level:(NSString *)level DistrictId:(NSString *)destrictId InviteCode:(NSString *)inviteCode {
    self = [super init];
    if (self) {
        _goodsId = goodsId;
        _sku = sku;
        _level = level;
        _destrictId = destrictId;
        _inviteCode = inviteCode;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodGET;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"goods_id":_goodsId,
             @"level":_level,
             @"district_id":_destrictId,
             @"invite_code":_inviteCode,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@upgradeConfirmOrderNoCart",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@upgradeConfirmOrderNoCart",BASE_SERVICE_DOMAIN];
}

@end


